package com.zhz.system.contract.enums;

import com.zhz.common.tool.mybatisplus.base.core.enums.EnumValueResolver;
import com.zhz.common.tool.mybatisplus.base.core.enums.IEnum;
import lombok.AllArgsConstructor;

/**
 * 是否开启
 *
 * @author zhouhengzhe
 * @date 2023/4/3
 */
@AllArgsConstructor
public enum UserEnableStateEnum implements EnumValueResolver<PermissionTypeEnum, Integer>, IEnum<Integer> {

    /**
     * 启用
     */
    ENABLE(1, "启用"),

    /**
     * 禁用
     */
    DISABLE(2, "禁用");

    private final Integer code;
    private final String message;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

}
